import request from '@/utils/request'

// 查询工艺规程-物料列表
export function listItems(query) {
  return request({
    url: '/mes/processItems/list',
    method: 'get',
    params: query
  })
}

// 查询工艺规程-物料详细
export function getItems(processItemUuid) {
  return request({
    url: '/mes/processItems/' + processItemUuid,
    method: 'get'
  })
}

// 新增工艺规程-物料
export function addItems(data) {
  return request({
    url: '/mes/processItems',
    method: 'post',
    data: data
  })
}

// 修改工艺规程-物料
export function updateItems(data) {
  return request({
    url: '/mes/processItems',
    method: 'put',
    data: data
  })
}

// 删除工艺规程-物料
export function delItems(processItemUuid) {
  return request({
    url: '/mes/processItems/' + processItemUuid,
    method: 'delete'
  })
}
